<html xmlns:th="http://www.thymeleaf.org">
<head>

    <link th:href="@{https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css}" rel="stylesheet"/>

</head>

<body>

<form th:action="save-schedule-job" method="post">
    <input type="hidden" name="id" th:value="${scheduleJobVO.id}">
    <table>
        <tr>
            <td>任务名称</td>
            <td><input type="text" name="jobName" th:value="${scheduleJobVO.jobName}"
                       th:readonly="${scheduleJobVO.id !=null}"></td>
        </tr>
        <tr>
            <td>任务分组</td>
            <td><input type="text" name="jobGroup" th:value="${scheduleJobVO.jobGroup}" th:readonly="${scheduleJobVO.id !=null}"></td>
        </tr>
        <tr>
            <td>任务别名</td>
            <td><input type="text" name="aliasName" th:value="${scheduleJobVO.aliasName}"></td>
        </tr>
        <tr>
            <td>时间表达式</td>
            <td><input type="text" name="cronExpression" th:value="${scheduleJobVO.cronExpression}"></td>
        </tr>
        <tr>
            <td>任务描述</td>
            <td><input type="text" name="description" th:value="${scheduleJobVO.description}"></td>
        </tr>
        <tr>
            <td>项目</td>
            <td>

                <select name="projectId">
                    <option th:each="project : ${projects}" th:value="${project.id}"
                            th:selected="${scheduleJobVO.projectId}" th:text="${project.name}"/>
                </select>
            </td>
        </tr>
    </table>
    <button type="submit">确认</button>
</form>

</body>
</html>
